added some extra logging(just sysout for the moment)