fixed a few bugs with developermode