load code to target successfully