Fixing package path; adding flags support