script implementation, working on limits