added status
added logging