added debug outside of console