made framwork.debug, needs to be modified to only exist in development and not production