included logging and stuff