added slight logging