merged with master, added some headers and moved loading to use them.

Signed-off-by: interdpth <interdpth@gmail.com>