fixed lack of strict typing in public methods