bug fixes and bump to 0.0.4