bug fixed and configured for production