better config managment and prod build with -p flag