hijackCode abstracted for better stack trace
cleanup code