added needed helper methods

Signed-off-by: Andreas Heiberg <git@andreas-heiberg.com>