updated compilation script