added more logging to sub controller