removing dev mode and log calls