feat: implementing gc + Rest API