first take on being a proper daemon