fixed path() and added more functions to frontend