added jhp stuffs

dunno if this will work, need sleep badly.
not set up with the main yet, just the function