Add check for abspath
Lang dir, main functions