moving app script into Fabrico