fn define, require and run