got basic functionality working