few fixes + set to production mode