addedhandy functions for executing code