added log msgs, fixed bugs, derped