adding better autoloading

Signed-off-by: RJ garcia <rj@bighead.net>