added logging, initial draw implementation