changed settings for production mode
added lock
added lock
final changes